package test;

import java.util.Collections;
import java.util.Comparator;
import java.util.LinkedList;
import java.util.List;

class student{
	private int code;
	private String name;
	
	public student(int code, String name) {
		super();
		this.code = code;
		this.name = name;
	}
	public int getCode() {
		return code;
	}
	public void setCode(int code) {
		this.code = code;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
}
public class zjw {
	public static void main(String[] args) {
		List<student> s=new LinkedList<>();
		s.add(new student(1,"b"));
		s.add(new student(2,"a"));
		//Collections.sort(s,new comp);
	}
}
